package model.mediators;

import model.entity.Entity;
import model.entity.Mount;
import controller.DismountMediator;

public class MountMediator {

    private Mount mount;
    private Entity rider;

    /**
     * @param mount
     * @param rider
     */
    public MountMediator(Mount mount, Entity rider) {
        this.mount = mount;
        this.rider = rider;

        mount();
    }

    public void mount() {
        rider.mount(mount);
        new DismountMediator(rider,mount);
    }
}
